const express = require('express')
const router = express.Router()

const { submitOrderInfo, getOrderInfo} = require('../../controller/web/orderController')
// 导入JWT拦截中间件
const checkTokenMiddleware = require('../../middlewares/checkTokenMiddleware')

// 用户提交预约看房信息
router.post('/order', checkTokenMiddleware, submitOrderInfo)

// 获取用户看房预约信息
router.get('/order/:id', checkTokenMiddleware, getOrderInfo)

module.exports = router